package kr.couponplay.android.domain;


public class Deal {
	private int id;
	private String metaId;
	private ProviderCode providerCode;
	private String title;
	private int originalPrice;
	private int salesPrice;
	private int discountRate;
	private int nowCount;
	private String shopName;
	private String fromDate;
	private String toDate;
	private String thumbnailImageUrl1;
	private String thumbnailImageUrl2;
	private String imageUrl1;
	private String imageUrl2;
	private String detailViewUrl;
	
	private String viewDate;
	
	public String display1() {
		if (title != null & title.length() > 22) {
			return title.substring(0, 22);
		}
		return title;
	}
	
	public String display2() {
		return originalPrice + "원  " + salesPrice + "원  " + discountRate + "%";
	}
	
	public String display3() {
		return  nowCount + "구매";
	}
	
	public CharSequence displayLocation() {
		return shopName;
	}
	
	public String getThumbnailImageUrl1() {
		return thumbnailImageUrl1;
	}
	public void setThumbnailImageUrl1(String imageUrl) {
		this.thumbnailImageUrl1 = imageUrl;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String product) {
		this.title = product;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String department) {
		this.shopName = department;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getThumbnailImageUrl2() {
		return thumbnailImageUrl2;
	}
	public void setThumbnailImageUrl2(String thumbnailImageUrl2) {
		this.thumbnailImageUrl2 = thumbnailImageUrl2;
	}
	public String getImageUrl1() {
		return imageUrl1;
	}
	public void setImageUrl1(String imageUrl1) {
		this.imageUrl1 = imageUrl1;
	}
	public String getImageUrl2() {
		return imageUrl2;
	}
	public void setImageUrl2(String imageUrl2) {
		this.imageUrl2 = imageUrl2;
	}
	public int getOriginalPrice() {
		return originalPrice;
	}
	public void setOriginalPrice(int fromOff) {
		this.originalPrice = fromOff;
	}
	public int getSalesPrice() {
		return salesPrice;
	}
	public void setSalesPrice(int toOff) {
		this.salesPrice = toOff;
	}
	public String getFromDate() {
		return fromDate;
	}
	public void setFromDate(String fromDate) {
		this.fromDate = fromDate;
	}
	public String getToDate() {
		return toDate;
	}
	public void setToDate(String toDate) {
		this.toDate = toDate;
	}

	public int getDiscountRate() {
		return discountRate;
	}

	public void setDiscountRate(int discountRate) {
		this.discountRate = discountRate;
	}

	public int getNowCount() {
		return nowCount;
	}

	public void setNowCount(int nowCount) {
		this.nowCount = nowCount;
	}

	public String getMetaId() {
		return metaId;
	}

	public void setMetaId(String metaId) {
		this.metaId = metaId;
	}

	public ProviderCode getProviderCode() {
		return providerCode;
	}

	public void setProviderCode(ProviderCode providerCode) {
		this.providerCode = providerCode;
	}

	public String getDetailViewUrl() {
		return detailViewUrl;
	}

	public void setDetailViewUrl(String detailViewUrl) {
		this.detailViewUrl = detailViewUrl;
	}

	public String getViewDate() {
		return viewDate;
	}

	public void setViewDate(String viewDate) {
		this.viewDate = viewDate;
	}
}
